<div class="menu_second">
<?php
	
	$categories = get_categories($_SESSION[language_id]);
			     
	foreach (array_reverse($categories) as $btn ){
				
		$btn[description] = strtoupper($btn[description]);
		$class = "menu_second_item";
		if( $btn[id] == $_GET['id'] || $btn[id] == $product['category'] ){
			$class .= "_active";
			echo "\t<div class=\"$class\">$btn[description]</div>\r\n";	
		} else {
			echo "\t<div class=\"$class\"><a href=\"productos.php?id=$btn[id]\">$btn[description]</a></div>\r\n";
		}		
		
	}
?>
	
</div>